package com.zuxia.oss;

import com.zuxia.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.multipart.MultipartFile;

@FeignClient(value = "service-oss")
public interface OssOpenFeignApi {
    @DeleteMapping("/admin/file/remove")
    R removeFile(@RequestBody String url) throws Exception;

    @PostMapping("/admin/file/upload/{type}")
    R fileUpload(@PathVariable("type") String type, MultipartFile file) throws Exception;


}
